package com.yaoxuguang.concurrence.wait_notify.thread_commumication_pipeline;

import java.io.PipedReader;

/**
 * @author yaoxuguang
 * @Title: yao-interview
 * @Package com.yaoxuguang.concurrence.wait_notify.thread_commumication_pipeline
 * @Description: 读数据线程
 * @date 2018年12月24日11:08
 */
public class ThreadRead extends Thread{
    private ReadData readData;
    private PipedReader pipedReader;

    public ThreadRead(ReadData readData, PipedReader pipedReader) {
        this.readData = readData;
        this.pipedReader = pipedReader;
    }

    @Override
    public void run() {
        readData.readData(pipedReader);
    }
}
